/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bst;
/**
*
* @author mweya
*/
public class Node {
private Node left;
private Node right;
private int value;
public Node() {}
public Node(int v) {
this.value = v;
}
public Node getLeft() {
return this.left;
}
public Node getRight() {
return this.right;
}
public void setRight(Node right) {
this.right = right;
}
public void setLeft(Node left) {
this.left = left;
}
public int getValue() {
return this.value;
}
public void setValue(int v) {
this.value = v;
}
@Override
public String toString() {
return "Node=("+this.value+")";
}
}